package com.example.xpvideo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商户配置表(MerchantsConfig)实体类
 *
 * @author 杨丽辉
 * @since 2021-07-26 14:46:45
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MerchantsConfig implements Serializable {
    private static final long serialVersionUID = -46943934633726970L;
        /**
    *主键
    * id
    * isnull 1
    */
        private Integer id;

    /**
    * 商户id
    * isnull 0
    */            private Integer merchantsId;
    /**
    * 店铺联系方式
    * isnull 0
    */            private String merchantsPhone;
    /**
    * 管理员id
    * isnull 0
    */            private Integer adminId;
    /**
    * 是否是官方：0：否；1：是
    * isnull 0
    */            private String isOfficial;
    /**
    * 状态：0：冻结。1：正常
    * isnull 0
    */            private String stage;
    /**
    * 描述相符评分
    * isnull 0
    */            private BigDecimal describleStar;
    /**
    * 服务评分
    * isnull 0
    */            private BigDecimal serviceStar;
    /**
    * 物流评分
    * isnull 0
    */            private BigDecimal shippingStar;
    /**
    * 轮播图
    * isnull 0
    */            private String rolation;
    /**
    * 红包数量
    * isnull 0
    */            private BigDecimal redPackage;
    /**
    * 店铺头像
    * isnull 0
    */            private String img;
    /**
    * 店铺名称
    * isnull 0
    */            private String merchantsName;
    /**
    * 店铺简介
    * isnull 0
    */            private String merchantsInfo;
    /**
    * 商圈id
    * isnull 0
    */            private Integer businessDistrictId;
    /**
    * 营业开始时间
    * isnull 0
    */        @DateTimeFormat(pattern = "HH:mm")
    @JsonFormat(pattern = "HH:mm",timezone = "GMT+8")
            private LocalDateTime businessStartTime;
    /**
    * 店铺详情
    * isnull 0
    */            private String merchantsDetail;
    /**
    * 营业结束时间
    * isnull 0
    */        @DateTimeFormat(pattern = "HH:mm")
    @JsonFormat(pattern = "HH:mm",timezone = "GMT+8")
            private LocalDateTime businessEndTime;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getMerchantsId() {
        return merchantsId;
    }

    public void setMerchantsId(Integer merchantsId) {
        this.merchantsId = merchantsId;
    }
        
    public String getMerchantsPhone() {
        return merchantsPhone;
    }

    public void setMerchantsPhone(String merchantsPhone) {
        this.merchantsPhone = merchantsPhone;
    }
        
    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }
        
    public String getIsOfficial() {
        return isOfficial;
    }

    public void setIsOfficial(String isOfficial) {
        this.isOfficial = isOfficial;
    }
        
    public String getStage() {
        return stage;
    }

    public void setStage(String stage) {
        this.stage = stage;
    }
        
    public BigDecimal getDescribleStar() {
        return describleStar;
    }

    public void setDescribleStar(BigDecimal describleStar) {
        this.describleStar = describleStar;
    }
        
    public BigDecimal getServiceStar() {
        return serviceStar;
    }

    public void setServiceStar(BigDecimal serviceStar) {
        this.serviceStar = serviceStar;
    }
        
    public BigDecimal getShippingStar() {
        return shippingStar;
    }

    public void setShippingStar(BigDecimal shippingStar) {
        this.shippingStar = shippingStar;
    }
        
    public String getRolation() {
        return rolation;
    }

    public void setRolation(String rolation) {
        this.rolation = rolation;
    }
        
    public BigDecimal getRedPackage() {
        return redPackage;
    }

    public void setRedPackage(BigDecimal redPackage) {
        this.redPackage = redPackage;
    }
        
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
        
    public String getMerchantsName() {
        return merchantsName;
    }

    public void setMerchantsName(String merchantsName) {
        this.merchantsName = merchantsName;
    }
        
    public String getMerchantsInfo() {
        return merchantsInfo;
    }

    public void setMerchantsInfo(String merchantsInfo) {
        this.merchantsInfo = merchantsInfo;
    }
        
    public Integer getBusinessDistrictId() {
        return businessDistrictId;
    }

    public void setBusinessDistrictId(Integer businessDistrictId) {
        this.businessDistrictId = businessDistrictId;
    }
        
    public LocalDateTime getBusinessStartTime() {
        return businessStartTime;
    }

    public void setBusinessStartTime(LocalDateTime businessStartTime) {
        this.businessStartTime = businessStartTime;
    }
        

        
    public LocalDateTime getBusinessEndTime() {
        return businessEndTime;
    }

    public void setBusinessEndTime(LocalDateTime businessEndTime) {
        this.businessEndTime = businessEndTime;
    }

    public String getMerchantsDetail() {
        return merchantsDetail;
    }

    public void setMerchantsDetail(String merchantsDetail) {
        this.merchantsDetail = merchantsDetail;
    }

    @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"merchantsId\":" + merchantsId +
                            " ,\"merchantsPhone\":" + merchantsPhone +
                            " ,\"adminId\":" + adminId +
                            " ,\"isOfficial\":" + isOfficial +
                            " ,\"stage\":" + stage +
                            " ,\"describleStar\":" + describleStar +
                            " ,\"serviceStar\":" + serviceStar +
                            " ,\"shippingStar\":" + shippingStar +
                            " ,\"rolation\":" + rolation +
                            " ,\"redPackage\":" + redPackage +
                            " ,\"img\":" + img +
                            " ,\"merchantsName\":" + merchantsName +
                            " ,\"merchantsInfo\":" + merchantsInfo +
                            " ,\"businessDistrictId\":" + businessDistrictId +
                            " ,\"businessStartTime\":" + businessStartTime +
                            " ,\"merchantsDetail\":" + merchantsDetail +
                            " ,\"businessEndTime\":" + businessEndTime +
                  '}';
    }


}
